package com.maiji.cloud.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.maiji.cloud.entities.shopingmall.DownPriceUserLog;

@Mapper
public interface DownPriceUserLogMapper  {
	/**
	 * 获取
	 * @param goodsLogId
	 * @return
	 */
	List<DownPriceUserLog> getListByUserLogId(@Param("goodsLogId")String goodsLogId);

	/**
	 * 根据用户id获取集合
	 * @param userId
	 * @return
	 */
	List<DownPriceUserLog> getListByUserId(@Param("userId")String userId);
	
	
	/**
	 * 获得砍价总金额
	 * @param goodsLogId
	 * @return
	 */
	Double getSumByUserLogId(@Param("goodsLogId")String goodsLogId);
	
	DownPriceUserLog selectOneByOpenId(@Param("openId")String openId,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
	/**
	 * 
	 * @param downPriceUserLog
	 */
	void insert(DownPriceUserLog downPriceUserLog);

}
